Skip to content

Conversation

@YashDeshpande25
Copy link
Contributor

Added function to determine bounds of dynamic dims in GEMMs using InterRangeAnalysis in Tile & Fuse Pipeline.

Copy link
Contributor

@nirvedhmeshram nirvedhmeshram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the outer logic is what we want, however I think we can largely simplify the logic in getLoopBoundsWithRangeAnalysis by using TensorDynamicDimAnalysis provided in the compiler, you can closely follow BlockDynamicDimensions pass for this.

@YashDeshpande25 YashDeshpande25 force-pushed the dynamic_GEMM_TAF branch 5 times, most recently from 854b90c to 8e985d1 Compare February 12, 2026 00:35
getLoopBoundsWithRangeAnalysis(linalgOp, entryPoint);
SmallVector<int64_t> bounds;
if (succeeded(maybeBounds)) {
boundsUsingAnalysis = true;
Copy link
Contributor

@nirvedhmeshram nirvedhmeshram Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this bool will be set true even when the bounds you find are equal to the bounds of getStaticLoopRanges, but what we want is to only set this to true if you are making bounds that are different from the bounds of getStaticLoopRanges.

@YashDeshpande25 YashDeshpande25 force-pushed the dynamic_GEMM_TAF branch 3 times, most recently from d1b18ea to 9e9cf26 Compare February 12, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants